package com.Vronsky.thread.test01;

import lombok.extern.slf4j.Slf4j;

@Slf4j(topic = "c.TestMail")
public class TestMail {
    public static void main(String[] args) throws InterruptedException {
        for (int i = 0; i < 3; i++) {
            new People().start();
        }
        Thread.sleep(1000);
        for (Integer id : Mailboxes.getIds()) {
            new Postman(id, "内容" + id).start();
        }
    }
}
